package com.employee.controller;

import com.employee.pojo.dto.AuthorityDto;
import com.employee.pojo.dto.CheckDTO;
import com.employee.pojo.result.Result;
import com.employee.service.AuthorityService;
import com.employee.service.CheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @AUTHOR 尹书岿
 * @DATE 2025/1/13 19:07
 * @DESCRIBE
 */
@RestController
public class CheckController {
    @Autowired
    private CheckService checkService;

    @GetMapping("/getCheckType")
    public Result<List<CheckDTO>> getAuthority() {
        List<CheckDTO> checkType = checkService.getCheckType();
        return Result.success(checkType);
    }
}
